package com.szpx.entity.XWY;

import java.util.Date;

/**
 * 用户实体类
 */
public class XWYDenglu {
    private Integer id;         // 用户ID
    private String username;    // 用户名
    private String password;    // 密码
    private String name;        // 姓名
    private String phone;       // 手机号
    private String role;        // 角色（user-普通用户，coach-教练，organization-机构，admin-管理员）
    private Integer status;     // 状态（1-正常，0-禁用）
    
    // 教练特有字段
    private String course;          // 课程类型
    private String coachLicense;    // 教练证号
    private String experience;      // 教学经验
    
    // 机构特有字段
    private String organization;    // 机构名称
    
    // 管理员特有字段
    private String adminCode;       // 管理员码
    
    // 通用字段
    private Date createTime;        // 创建时间
    private Date lastLoginTime;     // 最后登录时间

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;  // 修复空实现
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getRole() {
        return role;
    }

    public void setRole(String role) {
        this.role = role;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCourse() {
        return course;
    }

    public void setCourse(String course) {
        this.course = course;
    }

    public String getCoachLicense() {
        return coachLicense;
    }

    public void setCoachLicense(String coachLicense) {
        this.coachLicense = coachLicense;
    }

    public String getExperience() {
        return experience;
    }

    public void setExperience(String experience) {
        this.experience = experience;
    }

    public String getOrganization() {
        return organization;
    }

    public void setOrganization(String organization) {
        this.organization = organization;
    }

    public String getAdminCode() {
        return adminCode;
    }

    public void setAdminCode(String adminCode) {
        this.adminCode = adminCode;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }
}